<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title></title>
	<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
    <!-- Loading Bootstrap -->
    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
    <!-- Loading Flat UI -->
    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
</head>
<body>
	<form action="" method="post" enctype="multipart/form-data">
		<fieldset>
		<legend>编辑商品品牌</legend>
		<table class="table table-bordered table-hover">
			<tbody><tr class="info">
				<td>品牌名称</td>
				<td colspan="2">
					<input type="text" name="bname" value="{{$data['bname']}}">
				</td>
			</tr>
			<tr class="info" id="upload_box">
				{{if value="$data['blogo']"}}
				<td><img src="{{$data['blogo']}}" alt="" /></td>
				<td><a href="javascript:;" class="close_img">X</a></td>
				<!--<input type="hidden" name="blogo" id="" value="{{$data['blogo']}}" />-->
				{{else}}
				<td>品牌LOGO</td>
				<td>
					<input type="file" name="blogo" id="" value="" />
				</td>
				{{endif}}
				
			</tr>
			<tr class="info">
				<td>排序</td>
				<td colspan="2">
					<input type="input" name="bsort" value="{{$data['bsort']}}">
				</td>
			</tr>
			<tr class="info">
				<td>是否热门</td>
				<td colspan="2">
					<input type="hidden" name="isHot" value="0" />
					<input type="checkbox" name="isHot" value="1"{{if value="$data['isHot']"}}checked="checked"{{endif}}>
					
				</td>
			</tr>
			<tr>
				<td colspan="2" align="left">
					<input type="hidden" name="bid" id="bid" value="{{$_GET['bid']}}" />
					<input type="submit" class="btn btn-primary" value="编辑品牌">
				</td>
			</tr>
		</tbody></table>
		</fieldset>
	</form>
	<script src="./Public/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$(function(){
			$('.close_img').click(function(){
				var str='<td>品牌LOGO</td><td><input type="file" name="blogo" id="" value="" /></td>'
				$('#upload_box').html(str);
			})
		})
	</script>
</body>
</html>